
package client;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.xml.ws.WebServiceRef;


@ManagedBean
@RequestScoped
public class WSTime {
    @WebServiceRef(wsdlLocation = "WEB-INF/wsdl/localhost_8080/Caculator/WSCaculatorService.wsdl")
    private WSCaculatorService service;

    public WSTime() {
    }

    public String getTime(){
        return time().toString();
    }

    private String time() {
        client.WSCaculator port = service.getWSCaculatorPort();
        return port.time();
    }


}
